#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
	int la,lb,lmax,lmin,i,j,size,x;
	char al[201],bl[201];
	int lag[201],sml[201],c[201][1001]={0},ans[1001]={0};
	scanf("%s %s",al,bl);
	la=strlen(al);lb=strlen(bl);
	
    if(la>=lb)
    {
    	lmax=la;lmin=lb;
    	for(i=0;i<=la-1;++i)lag[la-i]=al[i]-48;
	    for(i=0;i<=lb-1;++i)sml[lb-i]=bl[i]-48;
	}
	if(la<lb)
    {
    	lmax=lb;lmin=la;
    	for(i=0;i<=la-1;++i)sml[la-i]=al[i]-48;
	    for(i=0;i<=lb-1;++i)lag[lb-i]=bl[i]-48;
	}
	
	for(i=1;i<=lmin;i++)
	{
		for(j=1;j<=lmax;j++)
		{
			c[i][i+j-1]=lag[j]*sml[i];
			ans[i+j-1]=ans[i+j-1]+c[i][i+j-1];
		}
	}
	
	i=1;x=0;
	while(i<=la+lb)
	{
		ans[i]+=x;
		x=ans[i]/10;
		ans[i]%=10;
		i++;
	}
	
	if(ans[la+lb]==0)
	size=la+lb-1;
	else
	size=la+lb;

	for(i=size;i>=1;i--)printf("%d",ans[i]);
	printf("\n");
	
	return 0;
}